<div class="form">
<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'id' => 'account-token-initial-form',
			'enableAjaxValidation' => false,
		));
?>

<!-- 	<p class="note">Fields with <span class="required">*</span> are required.</p> -->

	<?php echo $form->errorSummary($model); ?>
<?php if (!AccessControl::isAltMode()) { ?>
	<div class="row">
		<?php echo $form->labelEx($model, 'projectId'); ?>
		<?php echo $model->project->name; ?>
	</div>
<?php } ?>
	<div class="row">
		<?php echo $form->labelEx($model, 'categoryId'); ?>
		<?php echo $model->category->name; ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'debit'); ?>
		<?php echo $form
			->textField($model, 'debit', array(
				'size' => 16,
				'maxlength' => 16
			));
		?>
		<?php echo $form->error($model, 'debit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'credit'); ?>
		<?php echo $form
			->textField($model, 'credit', array(
				'size' => 16,
				'maxlength' => 16
			));
		?>
		<?php echo $form->error($model, 'credit'); ?>
	</div>
	<div class="row">
		<span class="hint">初始值为2011年9月结束时科目的借/贷值</span>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(/*$model->isNewRecord ? */'保存' /*: 'Save'*/); ?>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->
